package com.pipi.biyesheji.dao.manager;

import com.pipi.biyesheji.dao.support.PageResult;
import com.pipi.biyesheji.dao.model.CategoryDO;
import com.pipi.biyesheji.dao.query.CategoryQuery;

import java.util.List;


/**
 * Manager for Category.
 */
public interface CategoryManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CategoryQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CategoryQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(CategoryDO record);

    /**
     * select by query condition.
     */
    List<CategoryDO> selectByQuery(CategoryQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CategoryDO> selectByQueryWithPage(CategoryQuery query);

    /**
     * select by primary key.
     */
    CategoryDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CategoryDO record,  CategoryQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CategoryDO record, CategoryQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CategoryDO record);
}